<template>
  <div class="waip_scroll" :style="{left:this.collapse?'64px':'250px'}">
    <el-backtop target=".waip_scroll"></el-backtop>
    <tag></tag>
    <slot></slot>
  </div>
</template>

<script>
import bus from "../bus/bus";
import tag from '../comms/tags'
export default {
  components:{
    tag
  },
  data() {
    return {
      collapse: true,
    };
  },
  created() {
    bus.$on("isShowIcon", (res) => {
      this.collapse = res;
    });
  },
};
</script>

<style scoped>
.waip_scroll {
  position: absolute;
  left: 250px;
  top: 70px;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  transition: ease all 0.4s;
  background: #f0f0f0;
}
</style>